<!DOCTYPE html>
<html lang="en">
<head>

	<meta charset="utf-8">
	<title><?php echo $template['title']; ?></title>
	<meta name="description" content="Bootstrap Metro Dashboard">
	<meta name="author" content="Dennis Ji">
	<meta name="keyword" content="Metro, Metro UI, Dashboard, Bootstrap, Admin, Template, Theme, Responsive, Fluid, Retina">


	<!-- start: CSS -->

	<link rel="stylesheet" href="https://unpkg.com/animate.css@3.5.2/animate.min.css" />

	<link id="bootstrap-style" href="css/bootstrap.min.css" rel="stylesheet">
	<link href="css/bootstrap-responsive.min.css" rel="stylesheet">
	<link id="base-style" href="css/style.css" rel="stylesheet">
	<link id="base-style-responsive" href="css/style-responsive.css" rel="stylesheet">
	<style>
	.pbl{

        height:800px;
        width:100%;
	}

	</style>
	<!-- end: CSS -->

</head>

<body>
		<!-- start: Header -->
	<div class="navbar">
		<div class="navbar-inner">
			<div class="container-fluid">

				<a class="brand" href="index.php"><span style="margin-top:10px;">学生宿舍管理系统</span></a>

				<!-- start: Header Menu -->
				<div class="nav-no-collapse header-nav">
					<ul class="nav pull-right">

						<li class="dropdown">
							<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
								<i class="halflings-icon white user"></i> <?php  if(isset($_COOKIE['hbw']['sid'])) {echo $_COOKIE['hbw']['sid'];} else{ echo '未登录';} ?>
								<span class="caret"></span>
							</a>
							<ul class="dropdown-menu">
								<li class="dropdown-menu-title">
									<span>个人设置</span>
								</li>
								<li  style="display:<?php if( isset($_COOKIE['hbw']['sid']) ) { echo 'none' ;} ?>" ><a href="login.php"><i class="halflings-icon user"></i> 登录</a></li>
								<li  style="display:<?php if( !isset($_COOKIE['hbw']['sid']) ) { echo 'none' ;} ?>" ><a href="chanage.php"><i class="halflings-icon user"></i> 修改密码</a></li>
								<li  style="display:<?php if( !isset($_COOKIE['hbw']['sid']) ) { echo 'none' ;} ?>"  ><a href="exit.php"><i class="halflings-icon off"></i> 退出登录</a></li>
							</ul>
						</li>
						<!-- end: User Dropdown -->
					</ul>
				</div>
				<!-- end: Header Menu -->

			</div>
		</div>
	</div>

	<div class="container-fluid-full">
    		<div class="row-fluid">

    			<!-- start: Main Menu -->
    			<div id="sidebar-left" class="span2">
    				<div class="nav-collapse sidebar-nav">
    					<ul class="nav nav-tabs nav-stacked main-menu">
    						<li><a href="index.php"><i class="icon-bar-chart"></i><span class="hidden-tablet"> 首页</span></a></li>
    						<li><a href="student_select.php"><i class="icon-envelope"></i><span class="hidden-tablet"> 学生信息查询</span></a></li>
    						<li><a href="ss_select.php"><i class="icon-tasks"></i><span class="hidden-tablet"> 宿舍信息查询</span></a></li>
    						<li><a href="student_in.php"><i class="icon-eye-open"></i><span class="hidden-tablet"> 学生入住登记</span></a></li>
    						<li><a href="widgets.php"><i class="icon-dashboard"></i><span class="hidden-tablet"> 学生信息管理</span></a></li>

    						<li><a href="form.php"><i class="icon-edit"></i><span class="hidden-tablet">学生缺寝记录</span></a></li>
    						<li style="display:<?php if( !isset($_COOKIE['hbw']['sid']) ) { echo 'none' ;} ?>"><a href="chanage.php" ><i class="icon-list-alt"></i><span class="hidden-tablet"> 修改密码</span></a></li>

    					</ul>
    				</div>
    			</div>